﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.UI;
public class BetBtnControl : MonoBehaviour {

	// Use this for initialization
	List<Button> BtnList = new List<Button>();
	void Start () {
		BtnList.Add (transform.GetChild(0).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(1).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(2).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(3).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(4).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(5).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(6).GetComponent<Button> ());
		BtnList.Add (transform.GetChild(7).GetComponent<Button> ());
	}

	public void Hide(){

		for (int i = 0; i < BtnList.Count; i++) {
			BtnList [i].enabled = false;
			BtnList [i].transform.GetChild (2).gameObject.SetActive (true);
		}
	}

	public void ShowControl(){

		for( int i = 0 ; i < BtnList.Count ; i++){
			BtnList [i].enabled = true;
			BtnList [i].transform.GetChild (2).gameObject.SetActive (false);
		}
	}


	
	// Update is called once per frame
	void Update () {

	}
}
